package com.bigshen.demo.project.entity;

import org.springframework.beans.factory.annotation.Value;

public class Child {

    @Value("天天")
    private String name;

    @Value("3")
    private Integer age;

    @Value("#{6.3-2.1}")
    private Double height;

    @Value("${child.family}")
    private String family;

    public Child(String name, Integer age, Double height) {
        this.name = name;
        this.age = age;
        this.height = height;
    }

    public Child() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Double getHeight() {
        return height;
    }

    public void setHeight(Double height) {
        this.height = height;
    }

    public String getFamily() {
        return family;
    }

    public void setFamily(String family) {
        this.family = family;
    }

    @Override
    public String toString() {
        return "Child{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", height=" + height +
                ", family='" + family + '\'' +
                '}';
    }
}
